<?php
// $Id: admin_header.php,v 0.0.1 2005/10/27 20:30:00 domifara Exp $
/**
 * $Id: admin/admin_header.php v 1.5 23 August 2004 hsalazar Exp $
 * Module: Soapbox
 * Version: v 1.5
 * Release Date: 23 August 2004
 * Author: hsalazar
 * License: GNU
 */

require("../../../mainfile.php");
require "../include/gtickets.php" ;

include XOOPS_ROOT_PATH.'/include/cp_header.php';

include_once XOOPS_ROOT_PATH."/kernel/module.php";
include_once XOOPS_ROOT_PATH."/class/xoopstree.php";
include_once XOOPS_ROOT_PATH."/class/xoopslists.php";
include_once XOOPS_ROOT_PATH."/class/xoopsformloader.php";

if (is_object($xoopsUser)) {
	$xoopsModule = XoopsModule::getByDirname("soapbox");
	if (!$xoopsUser->isAdmin($xoopsModule->mid())) {
		redirect_header(XOOPS_URL."/",1,_NOPERM);
		exit();
	}
} else {
	redirect_header(XOOPS_URL."/",1,_NOPERM);
	exit();
}

defined ('FRAMEWORKS_ART_FUNCTIONS_INI') || include_once XOOPS_ROOT_PATH . '/Frameworks/art/functions.ini.php' ;
include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/class/admin.php";

load_functions('admin') ;

if ( !@include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/language/" . $xoopsConfig['language'] . "/main.php") {
    include_once XOOPS_ROOT_PATH . "/modules/" . $xoopsModule->getVar("dirname") . "/language/english/main.php" ;
}
if (!isset($xoopsTpl) || !is_object($xoopsTpl)) {
    include_once XOOPS_ROOT_PATH . '/class/template.php' ;
    $xoopsTpl = new XoopsTpl() ;
    }

include_once XOOPS_ROOT_PATH."/modules/".$xoopsModule->dirname()."/include/functions.php";
$myts =& MyTextSanitizer::getInstance();
?>
